//
//  CYBaseTableViewController.m
//  CreditAddressBook
//
//  Created by Lee on 15/7/8.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import "CYBaseTableViewController.h"
#import "CYJumpsTool.h"
#import "MobClick.h"

@interface CYBaseTableViewController ()

@property (nonatomic, strong) NSString *className;

@end

@implementation CYBaseTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.className = [[NSStringFromClass([self class]) componentsSeparatedByString:@"."] firstObject];
    CYLog(@"页面名称：%@", [CYJumpsTool interfaceNameWithClassName:self.className]);
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    //页面的统计
    [MobClick beginLogPageView:[CYJumpsTool interfaceNameWithClassName:self.className]];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    //页面的统计
    [MobClick endLogPageView:[CYJumpsTool interfaceNameWithClassName:self.className]];
}

@end
